<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<sj:head jqueryui="true"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<title>Role</title>
</head>
<body>
<sj:div id = "roleDetailDiv">

<s:form theme="simple" action="saveRole" id="roleDetailForm">
<s:actionerror/>
	<table width="100%" border="0" align="center" cellpadding="4"
		cellspacing="1" class="gridtable">
		
		<tr>
			<td align="left">
			<s:textfield name="selectedRole.name"
				label="Role Name" value="%{selectedRole.name}" /></td>
				<s:hidden name="selectedRole.id"  id="selectedRole.id" value="%{selectedRole.id}"/>
		</tr>
		<tr>
			<td><s:select name="selectedAllowedAction" listKey="id" listValue="name" multiple="true" size="10"
				list="listActions"/></td>
		</tr>
		
		<tr>
		<s:url var="saveRoleUrl" action="saveRole" ></s:url>
			<td align="left"><sj:submit value="Save" name="Save"
				href="%{saveRoleUrl}" cssClass="btnbg" targets="roleDetailDiv" formIds="roleDetailForm"/></td>
		</tr>
	</table>
</s:form>
</sj:div>
</body>
</html>